//
//  PlayMovie_Delegate.m
//  PlayMovie
//
//  Created by 畑圭輔 on 09/10/13.
//  Copyright Keisuke Hata 2009. All rights reserved.
//

#import "OverlayMoviePlayerController_Delegate.h"

@implementation OverlayMoviePlayerController_Delegate

@synthesize window;

- (void)applicationDidFinishLaunching:(UIApplication *)application {    

	[[UIApplication sharedApplication] setStatusBarHidden:YES];
	[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight];
	
	window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
	[window setTag:kMainWindowTag];
	movieController = [[MovieController alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

	[window addSubview:movieController];
	[movieController setTag:kMovieViewTag];
	[window setBackgroundColor:[UIColor blackColor]];
	
    [window makeKeyAndVisible];
	[movieController initMoviePlayer];
}

- (void)dealloc {
	
	[window release];
	[movieController release];
    [super dealloc];
	
}


@end
